package com.gao.frame.study.shop.config.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "order_customer_addr")
public class OrderCustomerAddr {
    /**
     * 自增主键ID
     */
     @TableId(value = "customer_addr_id", type = IdType.AUTO)
    private Integer customerAddrId;

    /**
     * customer_login表的自增ID
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 邮编
     */
    @TableField(value = "zip")
    private Integer zip;

    /**
     * 地区表中省份的id
     */
    @TableField(value = "province")
    private Integer province;

    /**
     * 地区表中城市的id
     */
    @TableField(value = "city")
    private Integer city;

    /**
     * 地区表中的区id
     */
    @TableField(value = "district")
    private Integer district;

    /**
     * 具体的地址门牌号
     */
    @TableField(value = "address")
    private String address;

    /**
     * 是否默认
     */
    @TableField(value = "is_default")
    private Byte isDefault;

    /**
     * 最后修改时间
     */
    @TableField(value = "modified_time")
    private Date modifiedTime;

    public static final String COL_CUSTOMER_ID = "customer_id";

    public static final String COL_ZIP = "zip";

    public static final String COL_PROVINCE = "province";

    public static final String COL_CITY = "city";

    public static final String COL_DISTRICT = "district";

    public static final String COL_ADDRESS = "address";

    public static final String COL_IS_DEFAULT = "is_default";

    public static final String COL_MODIFIED_TIME = "modified_time";
}